﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.Diagnostics;

namespace BleachReader
{
    class Log
    {
        private static Log instance = new Log();
        public static Log Instance
        {
            get
            {
                return instance;
            }
        }

        private StreamWriter sw = new StreamWriter("spider." + Process.GetCurrentProcess().Id.ToString("0000") + ".txt");

        public void WriteInfo()
        {
            WriteInfo("");
        }

        public void WriteInfo(string format, params object[] objs)
        {
            sw.WriteLine(format, objs);
            Console.WriteLine(format, objs);
        }
    }
}
